home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 October / PCWorld_2002-10_cd.bin / Software / TemaCD / brozurka / brozurka.exe / Na CD / Encodery / Fastencc / manual.txt < prev    next >
Encoding:
Text File  |  2000-06-01  |  6.2 KB  |  172 lines

  1. Manual.txt for Version 1.01 of ISO/MPEG Audio Layer 3 software only 
  2. encoder for Win32.
  3.  
  4.                       =========================
  5.  
  6.  fastenc is an ISO/MPEG Layer-3 software only encoder. It takes 
  7.  audio data files as input and delivers Layer-3 coded bitstream 
  8.  files as output. Several options can be selected via command line 
  9.  switches. Usage:
  10.  
  11.    fastencc <.wav or .mp3 input> <.mp3 bitstream> [-switch1 [-switch2 [...]]]
  12.  
  13.  switches:
  14.  
  15.    -br   xxx     total bitrate, 8000<=bitrate<=320000
  16.    -vbr  xxx     vbr encoding, vbr quality: 1<=vbr<=100
  17.    -ds   xxx     downsample output to xxx Hz
  18.    -dm           downmix stereo to mono
  19.    -mq           medium quality, medium speed
  20.    -hq           highest quality, reduced speed
  21.    -crc          enable MPEG1/2 crc check
  22.    -dvh          don't write VBRI header
  23.  
  24.   fprintf(stdout,"Note: in the vbr mode following switches not supported:\n");
  25.   fprintf(stdout," -mq\n");
  26.   fprintf(stdout," -hq\n");
  27.   fprintf(stdout," -ds\n");
  28.   fprintf(stdout," -dm\n");
  29.  
  30.  
  31.   
  32.  PLEASE NOTE:
  33.  ------------
  34.  
  35. 1.1 <.wav or .mp3 input>: audio input file
  36.  
  37.   The first command line argument specifies the name for the PCM audio
  38.   data file. Version 1.01 of the encoder accepts only PCM audio data
  39.   files in RIFF/WAVE format as used by Microsoft Windows or Layer 3 MPEG 1,
  40.   MPEG 2 or MPEG 2.5 .mp3 file. PCM samples must be 16 bit signed integer
  41.   values.
  42.  
  43.    
  44. 1.2 <.mp3 bitstream>: Layer 3 output file
  45.  
  46.   The second command line argument specifies the name for the bitstream 
  47.   output file. The extension of the file name should be .mp3.
  48.   The format of the bitstream is as defined in the
  49.   ISO/MPEG publications IS11172-3 (MPEG-1) and IS13818-3 (MPEG-2).
  50.   For very low bitrates a special Fraunhofer format called "MPEG 2.5"
  51.   is used.
  52.  
  53.  
  54. 1.3 bitrate
  55.  
  56.   The bitrate of the bitstream output is selected via the '-br' switch.  The 
  57.   bitrate is specified in bits/second. The bitrate is the total bitrate for 
  58.   all encoded channels, i.e. if you select '-br 128000' and 'stereo', both 
  59.   channels will be stuffed into one bitstream of 128000 bits/second. 
  60.   Valid bitrates are:
  61.       8000 bit/s   mono only
  62.      12000 bit/s   mono only
  63.      16000 bit/s   mono only
  64.      18000 bit/s   mono only
  65.      20000 bit/s   stereo and mono
  66.      24000 bit/s   stereo and mono
  67.      32000 bit/s   stereo and mono
  68.      40000 bit/s   stereo and mono
  69.      48000 bit/s   stereo and mono
  70.      56000 bit/s   stereo and mono
  71.      64000 bit/s   stereo and mono
  72.      80000 bit/s   stereo and mono
  73.      96000 bit/s   stereo and mono
  74.     112000 bit/s   stereo and mono
  75.     128000 bit/s   stereo and mono
  76.     144000 bit/s   stereo and mono
  77.     160000 bit/s   stereo and mono
  78.     192000 bit/s   stereo and mono
  79.     224000 bit/s   stereo and mono
  80.     256000 bit/s   stereo and mono
  81.     320000 bit/s   stereo and mono
  82.  
  83.   The default bitrate table:
  84.  
  85.    input samplerate, Hz | input channels | default bitrate
  86.    ---------------------+----------------+----------------
  87.     >= 32000            |        2       |    128000 bps
  88.     >= 22050 and <32000 |        2       |     80000 bps
  89.     >= 12000 and <22050 |        2       |     32000 bps
  90.                  <12000 |        2       |     16000 bps
  91.                         |                |
  92.     >= 32000            |        1       |     80000 bps
  93.     >= 22050 and <32000 |        1       |     56000 bps
  94.     >= 12000 and <22050 |        1       |     20000 bps
  95.                  <12000 |        1       |     16000 bps
  96.  
  97.  
  98. 1.4 variable bitrate
  99.  
  100.   This can be set to a value between 1 and 100. Values between 1
  101.   and 100 produce varying levels of encoder output quality.
  102.   The highest quality is 100. VBR is mutually exclusive with any
  103.   choice of output format: VBR always produces layer-3 bitstreams
  104.   with the same sample rate and number of channels as the input.
  105.   By default, in vbr mode fastenc start a mp3-file from VBRI header.
  106.   To disable this, use -dvh switch.
  107.  
  108.  
  109. 1.5 downsampling
  110.  
  111.   Switch -ds can be used to downsample input before encoding.
  112.   This switch don't have effect in vbr mode.
  113.  
  114.  
  115. 1.6 downmix
  116.  
  117.   If a stereo input file should be treated as mono, the '-dm' swich can be
  118.   used. The mono signal is calculated by (l+r)/2.
  119.   This switch don't have effect in vbr mode.
  120.  
  121.   
  122. 1.7 quality
  123.  
  124.   If the '-hq' option is specified, the encoder will try to produce higher
  125.   audio quality, but at the cost of a reduced encoding speed.
  126.   If the '-mq' option is specified, the encoder will try to produce medium
  127.   audio quality.
  128.   Quality settings don't have effect in the vbr mode.
  129.   The default value is high speed encoding.
  130.  
  131.  
  132. 1.8 crc check
  133.  
  134.   If '-crc' is asserted, ISO/MPEG crc checking is enabled. Without the 'crc' 
  135.   switch, crc checking is disabled.
  136.  
  137.  
  138. 1.9 examples of switch settings
  139.  
  140.   fastencc infile.wav out.mp3 -br 112000 -crc
  141.   fastencc pop.wav pop.mp3 -br 256000 -hq
  142.   fastencc track01.wav track01.mp3 -vbr 80
  143.   fastencc tape.wav tape.mp3 -br 128000 -ds 32000
  144.  
  145.  
  146. 1.10 Encoding Recommendations
  147.  
  148.   Depending on the desired bitrate, the encoding process will be done
  149.   with different parameter settings.
  150.   fastenc supports two versions of Layer-3 bitstreams called MPEG-1 and
  151.   MPEG-2. 
  152.   The basic difference is the use of different sampling frequencies:
  153.  
  154.     MPEG-1 Layer 3       sampling frequencies 32, 44.1,  48 kHz
  155.     MPEG-2 Layer 3       sampling frequencies 16, 22.05, 24 kHz
  156.  
  157.   MPEG-1 supports higher audio bandwidth and is therefore the best 
  158.   choice for high quality audio coding at bitrates >= 96 kbit/s (stereo) 
  159.   or >= 48 kbit/s (mono). For bitrates <= 64 kbit/s (stereo) or
  160.   <=32 kbit/s (mono), MPEG-2 offers better sound quality compared to MPEG-1.
  161.  
  162.   fastencc selects between MPEG-1 and MPEG-2 automatically depending on the
  163.   bitrate switch (see section 1.3)
  164.  
  165.   For the coding of stereo files with bitrates <=96 kbit/s, the encoder
  166.   will use the intensity stereo technique.
  167.   Note, however, that the use of intensity stereo may demage information
  168.   which is needed for sound processing schemes like Dolby Surround. 
  169.   For bitrates >= 112 kbit/s, intensity stereo is not used.
  170.  
  171. All brand names are registered trade marks of their respective owners.
  172.